﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Text.RegularExpressions;
using System.Configuration;

namespace CodeDemon.Views.Review
{
	public partial class DisplayReview : ViewPage<CodeDemon.Models.ReviewModel>
	{
		public string LinkLogMessage(string logMessage)
		{
			string matcher = ConfigurationManager.AppSettings["RegexForDefectInLogMessage"];
			string replacestring = ConfigurationManager.AppSettings["RegexReplaceForLinkDefectInLogMessage"];
			return Regex.Replace(logMessage, matcher, replacestring);
		}
	}
}
